<template>
  <span>{{sum}}</span>
</template>
 
<script>
export default {
  props: ['list'],
  computed: {
    sum() {
      return this.list.reduce((sum, item) => item.checked === true ? sum + item.price * item.num : sum, 0 )
    }
  }
};
</script>

<style scoped>
     
</style>